import React from 'react';
import {HashRouter,Route,Switch} from 'react-router-dom';
import Apps from './App';
import Home from './admin/index';

import Ones from './Pages/Ones/index';
import Twos from './Pages/Twos/index';
import HuaL from './Pages/partu';
import Nopage from './Pages/404';
import Drag from './Pages/Three/index'


export default class IRouter extends React.Component{
    render (){
        return(
            <HashRouter>
                <Apps>
                    <Switch>
                        <Route path="/Log"></Route>

                        <Route  path="/home" render={()=>
                            <Home>
                                <Switch>
                                    <Route path="/home/ui/Button" component={Ones} />
                                    <Route path="/home/ui/Loading" component={Twos} />
                                    <Route path="/home/ui/Gallery" component={HuaL} />
                                    <Route path="/home/ui/Drag" component={Drag} />
                                    <Route component={Nopage} />
                                </Switch>
                            </Home>
                        }></Route>

                        <Route path="Reg"></Route> 
                    </Switch>
                </Apps>
            </HashRouter>
        )
    }
}